package com.x.Part4_抽象类.练习;

/**
 * ClassName: Employee
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.03.04 21:47
 */
public abstract class Employee {
    private MyDate birthday;
    private String name;
    private int number;


    public Employee() {
    }

    public Employee(MyDate birthday, String name, int number) {
        this.birthday = birthday;
        this.name = name;
        this.number = number;
    }

    public MyDate getBirthday() {
        return birthday;
    }

    public void setBirthday(MyDate birthday) {
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "birthday=" + birthday.toDateString() +
                ", name='" + name + '\'' +
                ", number=" + number ;
    }

    public abstract double earnings();
}
